sgdk: vdp_bg.h Source File

sgdk

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

vdp_bg.h
Go to the documentation of this file.

    00001
    00013 #ifndef _VDP_BG_H_
    00014 #define _VDP_BG_H_
    00015
    00016 #include "bmp.h"
    00017 #include "vdp.h"
    00018 #include "vdp_tile.h"
    00019
    00020
    00033 typedef struct
    00034 {
    00035     Palette *palette;
    00036     TileSet *tileset;
    00037     Map *map;
    00038 } Image;
    00039
    00040
    00047 extern u16 curTileInd;
    00048
    00069 void VDP_setHorizontalScroll(VDPPlan plan, s16 value);
    00096 void VDP_setHorizontalScrollTile(VDPPlan plan, u16 tile, s16* values, u16 len, u16 use_dma);
    00123 void VDP_setHorizontalScrollLine(VDPPlan plan, u16 line, s16* values, u16 len, u16 use_dma);
    00124
    00143 void VDP_setVerticalScroll(VDPPlan plan, s16 value);
    00168 void VDP_setVerticalScrollTile(VDPPlan plan, u16 tile, s16* values, u16 len, u16 use_dma);
    00169
    00184 void VDP_clearPlan(u16 plan, u8 use_dma);
    00185
    00195 VDPPlan VDP_getTextPlan();
    00203 u16 VDP_getTextPalette();
    00211 u16 VDP_getTextPriority();
    00212
    00226 void VDP_setTextPlan(VDPPlan plan);
    00237 void VDP_setTextPalette(u16 palette);
    00250 void VDP_setTextPriority(u16 prio);
    00251
    00266 void VDP_drawText(const char *str, u16 x, u16 y);
    00280 void VDP_clearText(u16 x, u16 y, u16 w);
    00290 void VDP_clearTextLine(u16 y);
    00291
    00313 void VDP_drawTextBG(u16 plan, const char *str, u16 flags, u16 x, u16 y);
    00330 void VDP_clearTextBG(u16 plan, u16 x, u16 y, u16 w);
    00343 void VDP_clearTextLineBG(u16 plan, u16 y);
    00344
    00370 u16 VDP_drawBitmap(u16 plan, const Bitmap *bitmap, u16 x, u16 y);
    00400 u16 VDP_drawBitmapEx(u16 plan, const Bitmap *bitmap, u16 basetile, u16 x, u16 y, u16 loadpal);
    00401
    00425 u16 VDP_drawImage(u16 plan, const Image *image, u16 x, u16 y);
    00459 u16 VDP_drawImageEx(u16 plan, const Image *image, u16 basetile, u16 x, u16 y, u16 loadpal, u16 use_dma);
    00460
    00461
    00462 #endif // _VDP_BG_H_

All Classes Files Functions Variables Typedefs Enumerations Defines